package com.fy.springcloud;

import com.fy.springcloud.service.MessageService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class StreamProducerApplication {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(StreamProducerApplication.class, args);
        MessageService messageService = context.getBean(MessageService.class);
        messageService.sendMessage("test stream message send...");
    }
}
